#!/bin/sh
# instr: 
# cp init.d-echo-my-ip /etc/init.d/echo-my-ip
# update-rc.d echo-my-ip defaults 99

ifconfig | grep 'inet addr' | grep -v '127.0.0.1' | perl -ane 'm/addr:(.*)\ Bcast/gio, print "Detecting my ip-addresses: $1\n"'

